{% extends 'layout.html' %}

{% block home_slogon %}
<ol class="breadcrumb">
  <li><a href="/admin">主页</a></li>
  <li><span>用户列表</span></li>
</ol>
<h3>用户列表</h3>
<table class="table table-hover table-striped">
  <tr>
    <th>ID</th>
    <th>用户名</th>
    <th>密码</th>
    <th>是否是管理员</th>
  </tr>
  {% for user in userList %}
  <tr>
    <th>{{user._id.toString()}}</th>
    <th>{{user.username}}</th>
    <th>{{user.password}}</th>
    <th>
      {% if user.isAdmin %}
      是
      {% else %}
      否
      {% endif %}
    </th>
  </tr>
  {% endfor %}
</table>
{% include 'page.html' %}

{% endblock %}
